
#include "common.h"
#include <time.h>

int64_t time_now()
{
    struct timespec now ;
    clock_gettime(CLOCK_MONOTONIC,&now);
    int64_t now_clock = now.tv_sec*1000000000 + now.tv_nsec;
    return now_clock;
    // printf("now_clock:%ldus\n",now_clock/1000);
}